@import url('https://fonts.googleapis.com/css?family=Playfair+Display&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,700&display=swap&subset=latin-ext');

body#md {
    position: absolute;
    /* font-family: "PT Serif", "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif; */
    text-align: justify;
    margin: 0px 40px;
    padding: 0;
    max-width: 73%;
    color: #333;
    font-size: 18px;
    font-weight: 200;
    line-height: 165%;
    padding-right: 20px;
    overflow-x: hidden;
    text-overflow: ellipses;
}

/* if screen is wide enough, put table of contents on the right side */
@media screen and (min-width: 60em) {
	.md .longTOC, .md .mediumTOC, .md .shortTOC {
		max-width: 20%;
		width: 20%; 
		float: right;
		position: fixed;
		right: 0px;
		top: 80px;
	}
}
/* for narrow screens or print, hide table of contents */
@media screen and (max-width: 60em) {
	.md .longTOC { display: none; }
    /*.md .mediumTOC, .md .shortTOC { }*/
	body { max-width: 100%; }
}
@media print {
	.md .longTOC, .md .mediumTOC, .md .shortTOC { display: none; }
	body { max-width: 100%; }
}

.md .longTOC {
    width: 210px;
    display: block;
    border-right: 2px solid #ddd;
    overflow-y:scroll;
    font-size: 15px;
    font-family: inherit;
    background: #FFF;
    
    position: absolute;
    top: 90px;
    left:-190px;
    bottom:0px;
    margin: 0px;
    padding: 0px;
}

.scrolled .md .longTOC {
    position: fixed;
    left: 0px;
    top: 0px;
    border-left: 10px solid #fff; 
}


/* no numbering of headings */
.md h1:before, .md h2:before, .md h3:before, .md h4:before, .md h5:before, .md h6:before { content: none; }

.md .longTOC a {
    color: #000;
}

.md .tocHeader, .md .tocNumber {
    display: none;
}

.md a,
.md div.title, contents, .md .tocHeader,
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6,
.md .nonumberh1, .md .nonumberh2, .md .nonumberh3, .md .nonumberh4, .md .nonumberh5, .md .nonumberh6,
.md .shortTOC, .md .mediumTOC, .md .longTOC {
    font-family: inherit;
}


.md h1, .md h2, .md h3, .md h4 {
    /*font-family: "PT Serif", "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
    font-weight: 800;
}

.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 {
    border: none;
}

.md h1 {
    font-size: 18px;
    text-transform: uppercase;
    color: #6aa84f;
    padding-bottom: 8px;
}
.md h2 {
    font-size: 16px;
    text-transform: uppercase;
    color: #6aa84f;
    font-weight: 200;
}
.md h3 {
    font-size: 15px;
    color: #999;
    font-weight: 200;
    font-style: italic;
}



/* Drop caps 
.md p:nth-of-type(3):first-letter {
    font-size: 54px;
    float: left;
    margin-top: .2em;
    margin-right: .07em;
    font-family: "Playfair Display", serif;
}
*/

.md div.title {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    text-align: left;
    position: absolute;
    top: -14px;
    left:-40px;
    /*right: 0px; */
    font-weight: 900;
    padding: 25px 10px;
    color: #fff;
    font-size: 45px;
    z-index: 10;
    background-color: #6aa84f;
    border-bottom: 2px solid #ddd;
    border-right: 4096px solid #444;
}


.md div.subtitle {
    margin-top: 10px;
    font-weight: 200;
    font-size: 18px;
    line-height: 120%;
    color: #999;
    text-align: left;
    font-style: italic;
}

.md div.subtitle:nth-of-type(2) {
    margin-top: 120px;
    font-weight: bold;
    font-size: 30px;
    font-style: normal;
    color: #000;
}

.md div.mediumTOC center b {
    display: none;
}

.md div.mediumTOC p {
    margin-top: -16px;
}

/* custom Admonition-style "note", "warn", "def" blocks */
.md .note, .md .warn, .md .def, .md .alg {
    position: relative;
    margin: 1em 0;
    padding: .4rem 0.8rem;
    border-radius: .2rem;
}
.md .note {
    border-left: 1.2rem solid rgba(68,138,255,.4);
    background-color: rgba(68,138,255,.15);
}
.md .warn {
    border-left: 1.2rem solid rgba(255,145,0,.4);
    background-color: rgba(255,145,0,.15);
}
.md .def {
    border-left: 1.2rem solid rgba(255,23,68,.4);
    background-color: rgba(255,23,68,.15);
}

.md .alg {
    border-left: 1.2rem solid rgba(60, 60, 60, 0.4);
    background-color: rgba(120,120,120,.15);
}

.md li {
    text-align: justify;
    width: 95%;
}

img {
    margin: 15px;
}

/* inline and block code */
.md pre.listing {
	background-color: rgba(0,0,0,.05);
	padding: 0.1em 0.2em;
	border-radius: 0.15em;
}
.md pre.listing code {
	background-color: transparent;
	padding: 0;
	border: none;
}
